﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="phuluc4_update.aspx.cs"
    Inherits="AIC_CS.phuluc4_update" MasterPageFile="~/Site1.Master" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div id="Div1" class="FormTitle" runat="server">
        <p class="TextTitle">
            <label id="lblFormName" runat="server" class="lblFormName">
                Kết quả công tác tìm kiếm, quy tập hài cốt liệt sỹ và cung cấp thông tin về liệt
                sỹ cho thân nhân (phụ lục 4)
            </label>
            <asp:ImageButton CssClass="btnExit" ID="ImageButton1" runat="server" ImageUrl="Images/exit.png"
                Height="24px" OnClick="ImageButton1_Click" />
        </p>
    </div>
    <div class="FormMain">
        <div class="labelNotice">
            <label id="lblNotice" style="color: Red" runat="server" visible="false">
                Thông báo lỗi</label>
        </div>
        <div class="Form Update" id="formSearch" runat="server">
            <table border="1px" class="ListForm" style="width: 800px">
                <tr>
                    <td>
                        Đơn vị
                    </td>
                    <td>
                        <asp:Label ID="lblDonVi" runat="server"></asp:Label>
                    </td>
                    <td>
                        Kỳ báo cáo
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlKyBaoCao" runat="server" CssClass="ControlDropdown" AutoPostBack="True"
                            OnSelectedIndexChanged="ddlKyBaoCao_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Số báo cáo
                    </td>
                    <td>
                        <asp:TextBox ID="txtReportNumber" runat="server" Width="200" CssClass="inputtext">
                        </asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="cmdBtn" OnClick="btnSearch_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" CssClass="cmdBtn" OnClick="btnAdd_Click" />
                    </td>
                </tr>
            </table>
            <asp:GridView ID="grvData" runat="server" AutoGenerateColumns="False" CssClass="ListTable"
                OnPageIndexChanging="grvData_PageIndexChanging" DataKeyNames="ID" OnRowCommand="grvData_RowCommand"
                OnRowDataBound="grvData_RowDataBound" AllowPaging="True">
                <Columns>
                    <%--<asp:TemplateField HeaderText="STT">
                        <ItemTemplate>
                            <asp:Label ID="lblIDDM" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="Số TT">
                        <ItemTemplate>
                            <asp:Label ID="lblSoThuTu" runat="server" Text='<%# Eval("SoThuTu") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="20px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Báo cáo số">
                        <ItemTemplate>
                            <asp:Label ID="lblBaoCaoSo" runat="server" Text='<%# Eval("BaoCaoSo") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="140px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Đơn vị">
                    <ItemTemplate>
                        <asp:Label ID="lblDv" runat="server" Text='<%# Eval("TenDV") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="140px" HorizontalAlign="Center" />
                </asp:TemplateField>
                    <asp:TemplateField HeaderText="Kỳ Báo cáo">
                        <ItemTemplate>
                            <asp:Label ID="lblKyBaoCao" runat="server" Text='<%# Eval("KyBaoCao") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="140px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày tạo">
                        <ItemTemplate>
                            <asp:Label ID="lblCreated" runat="server" Text='<%# Eval("Created") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="120px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Cập nhật cuối">
                        <ItemTemplate>
                            <asp:Label ID="lblUpdated" runat="server" Text='<%# Eval("Updated") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="120px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="CT">
                        <ItemTemplate>
                            <asp:ImageButton ID="lbtDetail" runat="server" ImageUrl="images/Detail.gif" CommandName="Detail"
                                CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>
                        </ItemTemplate>
                        <ItemStyle Width="10px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Sửa">
                    <ItemTemplate>
                        <asp:ImageButton Enabled='<%# Eval("DonVi_ID").ToString().Equals(Session["DonVi_ID"].ToString()) ? true : false %>'
                            ID="lbtEdit" runat="server" ImageUrl='<%# Eval("DonVi_ID").ToString().Equals(Session["DonVi_ID"].ToString()) ? "images/edit.gif" : "images/cancel.png" %>' CommandName="<%# AIC_CS.MyConst.Action.Update %>"
                            CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle Width="10px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Xóa">
                    <ItemTemplate>
                        <asp:ImageButton Enabled='<%# Eval("DonVi_ID").ToString().Equals(Session["DonVi_ID"].ToString()) ? true : false %>'
                            ID="lbtDelete" runat="server" ImageUrl='<%# Eval("DonVi_ID").ToString().Equals(Session["DonVi_ID"].ToString()) ? "images/delete.png" : "images/cancel.png" %>' CommandName="<%# AIC_CS.MyConst.Action.Delete %>"
                            OnClientClick="return confirm('Bạn có chắc là muốn xóa bản ghi này không ?')"
                            CommandArgument='<%# Eval("ID") %>'></asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle Width="10px" HorizontalAlign="Center" />
                </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
    <div class="Form View">
    </div>
</asp:Content>
